package com.wooophone.webapp.mpyeah.util;

public class SessionStatisticsUtil {
	
	public static long aliveSession=0;
	
	public static long totalTraffic=0;

	public static long getAliveSession() {
		return aliveSession;
	}

	public static long getTotalTraffic() {
		return totalTraffic;
	}

	public synchronized static long add(){
		++aliveSession;
		++totalTraffic;
		return ++totalTraffic;
	}
	
	public synchronized static long subduction(){
		return --aliveSession;
	}
	
}
